﻿<div class="module-container">
    <div class="search-panel">
        <form class="form-inline search-table">
            <div class="form-group">
                <input class="form-control w200px" name="name" type="text"
                       placeholder="请输入车号/线路/企业查询">
            </div>
            <div class="form-group">
                <select class="form-control uiselect uiselectsubmit" name="carcolor"
                        data-has-text-field="false">
                    @Html.EmptyOption("全部车牌颜色")
                    @Html.CarColorCategoryOption()
                </select>
            </div>
            <div class="form-group">
                <select class="form-control uiselect uiselectsubmit" name="pointid"
                        data-has-text-field="false">
                    @Html.CheckPointsCategoryOptionALL()
                </select>
            </div>
            <div class="form-group">
                <select class="form-control   uiselect uiselectsubmit " name="stationid"
                        data-has-text-field="false"
                        data-width="350">
                    @Html.EmptyOption("全部客运站")
                    @Html.StationCategoryOption()
                </select>
            </div>


            <button class="btn btn-primary" type="submit">
                <i class="fa fa-search"></i> 查询
            </button>

            <a class="btn btn-success uimodal" data-url="@Url.Action("Create")">
                <i class="fa fa-plus"></i> 新建
            </a>

            <a class="btn btn-danger tmdelete" data-table=".uitable" data-url="@Url.Action("Delete")">
                <i class="fa fa-trash-o"></i> 删除
            </a>

            <a id="emp_export" class="btn btn-default" href="@Url.Action("Export")">
                <i class="fa fa-share-square-o"></i> 导出
            </a>

        </form>
    </div>
    <div class="uitable" data-url="@Url.Action("Grid")">
        @Html.Action("Grid")
    </div>
</div>
<script>

    $('#emp_export').on('click', function () {
        var url = $(this).data('url') + '?' + $.param(fx.serializeForm($('.search-table')));
        window.location.href = url;
    });

</script>

